

my_str = "万过薪月，员序程马黑来，nohtyP学"
# result = my_str[9:4:-1]
# print(f"{result}")
#
#
# result = my_str.replace("来，","，")
# my_str = result.split("，")
# result1 = my_str[1]
# result2 = result1[::-1]
# print(f"{result2}")

# 1.先倒序，再切片
result1 = my_str[::-1][9:14]
print(f"第一种结果是：{result1}")

# 2.先切片，再倒序
result2 = my_str[5:10][::-1]
print(f"第二种结果是：{result2}")

# split分割，replace替换，倒序
result3 = my_str.split("，")[1].replace("来","")[::-1]
print(f"第三种结果是：{result3}")